class Post < ActiveRecord::Base
  has_many :comments
  has_one :category
#  has_and_belongs_to_many :tags

  # validate the data
  validates_presence_of :title, :body, :category_id
  
end
